package com.example.demo.alipay.pojo;

import javax.validation.constraints.NotBlank;

import com.example.demo.common.CommonUtil;

/**
 * 
 * <p>
 * 功能描述： 商品抽象类
 * </p>
 * 
 * @author lixh
 * @date 2019年3月15日 上午10:48:08
 * @version 1.0
 */
public class ItemDetails {

	// 商品名称
	@NotBlank(message = "不能为空")
	private String commodityName;

	// 商品描述
	@NotBlank(message = "不能为空")
	private String commodityDetail;

	// 交易金额
	@NotBlank(message = "不能为空")
	private String money;

	// 订单编号
	private String commodityNo = CommonUtil.getOrderIdByUUId();

	public String getCommodityNo() {
		return commodityNo;
	}

	public void setCommodityNo(String commodityNo) {
		this.commodityNo = commodityNo;
	}

	public String getCommodityName() {
		return commodityName;
	}

	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}

	public String getCommodityDetail() {
		return commodityDetail;
	}

	public void setCommodityDetail(String commodityDetail) {
		this.commodityDetail = commodityDetail;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ItemDetails [commodityName=");
		builder.append(commodityName);
		builder.append(", commodityDetail=");
		builder.append(commodityDetail);
		builder.append(", money=");
		builder.append(money);
		builder.append(", commodityNo=");
		builder.append(commodityNo);
		builder.append("]");
		return builder.toString();
	}

}
